/*
 * @Author: huangyingli
 * @Date: 2023-02-08 16:42:14
 * @LastEditors: huangyingli
 * @LastEditTime: 2023-02-08 17:01:08
 * @Description: 
 */
import { Button } from 'antd';
import { useNavigate } from 'react-router-dom';
import { useBeforeRouteEach } from '../../hooks/routeHook';
export default function B() {
  const navigate = useNavigate();
  useBeforeRouteEach()
  function handle() {
    navigate('/b');
  }
  return (
    <h2>
      <Button onClick={handle}>跳转b</Button>
    </h2>
  );
}
